import request from '@/utils/request'
// 数据级别排行
export function selectGradeList(query) {
  return request({
    url: '/marketing/BiProductThreeSource/selectGradeList',
    method: 'get',
    params: query
  })
}
// 单品多指标趋势图
export function selectShopSourceStatistics(query) {
  return request({
    url: '/marketing/BiProductThreeSource/selectProductSourceStatistics',
    method: 'get',
    params: query
  })
}
// 数据排行
export function selectProductMarketingRank(query) {
  return request({
    url: '/marketing/BiProductThreeSource/selectProductSourceRank',
    method: 'get',
    params: query
  })
}
// 多商品单指标对比
export function comparisonStatisticsPro(query) {
  return request({
    url: '/marketing/BiProductThreeSource/comparisonStatistics',
    method: 'get',
    params: query
  })
}
// // 查询三级流量来源数据日报列表
// export function selectProductAll(query) {
//   return request({
//     url: '/marketing/BiProductThreeSource/selectProductAll',
//     method: 'get',
//     params: query
//   })
// }
//查询所有的item
export function selectItemAll(query) {
  return request({
    url: '/marketing/BiProductThreeSource/selectItemAll',
    method: 'get',
    params: query
  })
}
// 查询某item下的所有商品id
export function selectProductAll(query) {
  return request({
    url: '/marketing/BiProductThreeSource/selectProductAll',
    method: 'get',
    params: query
  })
}
// 查询三级流量来源数据日报列表
export function listBiProductThreeSource(query) {
  return request({
    url: '/marketing/BiProductThreeSource/list',
    method: 'get',
    params: query
  })
}

// 查询三级流量来源数据日报详细
export function getBiProductThreeSource(id) {
  return request({
    url: '/marketing/BiProductThreeSource/' + id,
    method: 'get'
  })
}

// 新增三级流量来源数据日报
export function addBiProductThreeSource(data) {
  return request({
    url: '/marketing/BiProductThreeSource',
    method: 'post',
    data: data
  })
}

// 修改三级流量来源数据日报
export function updateBiProductThreeSource(data) {
  return request({
    url: '/marketing/BiProductThreeSource',
    method: 'put',
    data: data
  })
}

// 删除三级流量来源数据日报
export function delBiProductThreeSource(id) {
  return request({
    url: '/marketing/BiProductThreeSource/' + id,
    method: 'delete'
  })
}
